package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgFunnyVideo;
import com.ygqh.baby.po.YgFunnyVideoExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface YgFunnyVideoMapper {
	int countByExample(YgFunnyVideoExample example);

	int deleteByExample(YgFunnyVideoExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgFunnyVideo record);

	int insertSelective(YgFunnyVideo record);

	List<YgFunnyVideo> selectByExample(YgFunnyVideoExample example);

	YgFunnyVideo selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgFunnyVideo record, @Param("example") YgFunnyVideoExample example);

	int updateByExample(@Param("record") YgFunnyVideo record, @Param("example") YgFunnyVideoExample example);

	int updateByPrimaryKeySelective(YgFunnyVideo record);

	int updateByPrimaryKey(YgFunnyVideo record);

	int countSuper(@Param("q") String q);

	List<YgFunnyVideo> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	int updatePraiseCount(@Param("videoId") Long videoId, @Param("count") int count);

	List<YgFunnyVideo> selectVideoList(@Param("queryInfo") QueryInfo queryInfo, @Param("userId") Long userId);

}
